

name := "scala-advance"

version := "1.0"

scalaVersion := "2.11.11"

organization := "Scala Advance"

libraryDependencies ++= Seq(
  "org.apache.logging.log4j" % "log4j-core" % "2.9.1",
  "org.apache.logging.log4j" % "log4j-api" % "2.9.1",
  "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.9.1",
  "com.typesafe.scala-logging" %% "scala-logging" % "3.8.0",

  "org.scalatest" %% "scalatest" % "3.0.5" % Test,
  "org.scalamock" %% "scalamock-scalatest-support" % "3.6.0" % Test
)

// Cats
val cats = project.in(file("cats"))

// Parts
val fp1 = project.in(file("cats/fp1"))
val fp2 = project.in(file("cats/fp2"))
val fp3 = project.in(file("cats/fp3"))

val main: Project = Project("mycat", file(".")).aggregate(
  cats, fp1, fp2, fp3
)

unmanagedSourceDirectories in Compile <<= baseDirectory { base =>
  Seq(
    base / "src/main/scala"
  )
}
licenses in ThisBuild := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))

resolvers += Resolver.bintrayRepo("typesafe", "maven-releases")

testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")
